package com.stu.day11.factory3.f2;

/**
 * @author zy
 * @date 2025/2/3 21:11
 */
public class Test {
    public static void main(String[] args) {
        Car luxuryCar = CarFactory.createCar(CarFactory.LUXURY);  // 工厂创建豪华车
        Car economyCar = CarFactory.createCar(CarFactory.ECONOMY);  // 工厂创建经济车

        luxuryCar.bodyAssemble();
        luxuryCar.seatAssemble();
        luxuryCar.wheelAssemble();
        System.out.println("----------");
        economyCar.bodyAssemble();
        economyCar.seatAssemble();
        economyCar.wheelAssemble();
    }
}
